/*
 * @Author: all
 * @Date: 2019-11-19 09:05:30
 * @LastEditTime: 2019-11-21 15:41:54
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \YouYouFo\you-you-go\src\main.js
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 导入vant
// import Vant from 'vant';
import Vant, { Lazyload } from 'vant';

import 'vant/lib/index.css';
// 阿里图标
import '@/assets/font/iconfont.css'
// 导入时间过滤器
import moment from 'moment'
import axios from 'axios'
Vue.prototype.$http = axios
// 配置axios公共地址
axios.defaults.baseURL = 'http://www.liulongbin.top:3005'
Vue.use(Lazyload);
Vue.use(Vant);
// 时间过滤器
// 定义全局的过滤器
Vue.filter('dateFormat', (timer) => {
  return moment(timer).format('YYYY-MM-DD HH:mm:ss')
})
Vue.prototype.$moment = moment;
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
